package com.bluedot.www.framework.ibatis.mybaits.sqlsession;

import java.util.List;

/**
 * SqlSession
 *
 * @author GUOZHIPENG
 * @date 2021/07/07/11:22
 */
public interface SqlSession {
    <T> T getMapper(Class<T> daoInterfaceClass);

    <T> T selectOne(String mapperName, Object[] parameter);

    <T> List<T> selectList(String mapperName, Object[] parameter);

    int insert(String mapperName, Object[] parameter);

    int update(String mapperName, Object[] parameter);

    int delete(String mapperName, Object[] parameter);

    void close();
}
